package com.starlink.model.dtomapper;

import com.starlink.model.domain.FreeDeliverySetDO;
import com.starlink.model.request.FreeDeliverySetRequest;
import com.starlink.model.vo.FreeDeliverySetVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface FreeDeliverySetDtoMapper {

    FreeDeliverySetDtoMapper INSTANCE = Mappers.getMapper(FreeDeliverySetDtoMapper.class);

    /**
    * DO to VO
    * @param freeDeliverySetDO
    * @return
    */
    FreeDeliverySetVO do2VO(FreeDeliverySetDO freeDeliverySetDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    FreeDeliverySetDO request2DO(FreeDeliverySetRequest request);
}
